<?php
/**
 * 导航验证器
 * @author maniac
 */
namespace app\common\validate;

class Navs extends Base
{
    // 验证规则
    protected $rule = [
        'name'        => 'require',
        'category_id' => 'require|number|gt:0',
    ];
    
    // 错误信息
    protected $message = [
        'name'        => '请输入导航名称',
        'category_id' => '请选择导航分类',
    ];
}
